// 日期
let dictDate = [
	{
		name: '昨日',
		dateType: 1,							
	},{
		name: '本月',
		dateType: 2,					
	},{						
		name: '本年',
		dateType: 3,					
	},{						
		name: '历史',
		dateType: 4,					
	}					
]

// 路由地址
let dictRouter = {
	// 云贷
	loans: [
		{path: '/loans/achievement', title: '云贷-业绩'},
		{path: '/loans/actual', title: '云贷-实时'},
		{path: '/loans/credit', title: '云贷-授信'},
		{path: '/loans/storage', title: '云贷-在库'},
		{path: '/loans/afterloan', title: '云贷-贷后'},
		{path: '/loans/hr', title: '云贷-人力'},
	]
}

// 总览
let dictAll = {
	loanNew : {
		name : ['新增借款', '借款金额'],
		quotaType: 2, 
	},
	
	repayCapital: {
		name: ['还款本金', '还款本金'],
		quotaType: 7,
	},	
	loanStorage : {
		name : ['在库净增', '借款在库'],
		quotaType: 3, 
	},
	creditNew : {
		name :['新增授信', '授信额度'],
		quotaType: 1, 
	},
	creditCustomerCount : {
		name : ['授信客户', '授信客户'],
		quotaType: 4, 
	},
	loanCustomerCount : {
		name : ['借款客户', '借款客户'],
		quotaType: 5, 
	},
	loanCount : {
		name : ['借款笔数', '借款笔数'],
		quotaType: 6, 
	},
	repayCount : {
		name : ['还款笔数', '还款笔数'],
		quotaType: 8, 
	},
}; 

// 云贷驾驶舱
let dictLoans = {	
	loanNew : {
		name : ['新增借款', '借款金额'],
		quotaType: 2, 
	},
	repayCapital : {
		name : ['还款本金', '还款本金'],
		quotaType: 8, 
	},
	loanStorage : {
		name : ['在库净增', '借款在库'],
		quotaType: 3, 
	},

	creditNew : {
		name :['新增授信', '授信额度'],
		quotaType: 1, 
	},
	creditCustomerCount : {
		name : ['授信客户', '授信客户'],
		quotaType: 4, 
	},	
	loanCustomerCount : {
		name : ['借款客户', '借款客户'],
		quotaType: 5, 
	},
	loanCount : {
		name : ['借款笔数', '借款笔数'],
		quotaType: 7, 
	},
	repayCount : {
		name : ['还款笔数', '还款笔数'],
		quotaType: 9, 
	},	
	creditUseRatio : {
		name : ['授信使用率', '授信使用率'],
		quotaType: 100, 
	},
};

// 云贷-授信
let dictGive = {
	creditNew : {
		name :['新增授信', '授信额度'],
		quotaType: 1, 
	},
	creditAmountAvg : {
		name : ['客户人均授信', '客户人均授信'],
		quotaType: 2, 
	},
	creditCapacityAvg : {
		name : ['授信人均产能', '授信人均产能'],
		quotaType: 3, 
	},
	firstSubmitCount : {
		name : ['首次提交单量', '首次提交单量'],
		quotaType: 4, 
	},
	firstSubmitCountAvg : {
		name : ['人均首次提交单量', '人均首次提交单量'],
		quotaType: 5, 
	},	
	passRatio : {
		name : ['通过率', '通过率'],
		quotaType: 7, 
	},
	sendBackRatio : {
		name : ['退回率', '退回率'],
		quotaType: 8, 
	},	
	pendingAuditCount : {
		name : ['待审单量', '待审单量'],
		quotaType: 6, 
	}
};

// 云贷-在库
let dictStorage = {
	loanStorage : {
		name :['在库净增', '借款在库'],
		quotaType: 1, 
	},
	loanAmount : {
		name : ['新增借款', '借款金额'],
		quotaType: 2, 
	},
	repayCapital : {
		name : ['还款本金', '还款本金'],
		quotaType: 4, 
	},
	loanCount : {
		name : ['借款笔数', '借款笔数'],
		quotaType: 3, 
	},
	repayCount : {
		name : ['还款笔数', '还款笔数'],
		quotaType: 5, 
	},	
	loanCustomerCount : {
		name : ['借款客户', '借款客户'],
		quotaType: 6, 
	},
	loanPeriod : {
		name : ['人均借款周期', '人均借款周期'],
		quotaType: 99, 
	},
	creditUseRatio : {
		name : ['授信使用率', '授信使用率'],
		quotaType: 100, 
	}	
};

// 云贷-贷后
let dictAfter = {
	repay81Ratio : {
		name :['81天回款率'],
		quotaType: 5, 
	},
	repay83Ratio : {
		name : ['83天回款率'],
		quotaType: 6, 
	},
	repay88Ratio : {
		name : ['88天回款率'],
		quotaType: 7, 
	},
	repay89Ratio : {
		name : ['89天回款率'],
		quotaType: 8, 
	},
	repay90Ratio : {
		name : ['90天回款率'],
		quotaType: 9, 
	},	
	repay100Ratio : {
		name : ['100天回款率'],
		quotaType: 11, 
	},	
	repay120Ratio : {
		name : ['120天回款率'],
		quotaType: 10, 
	},
	repay180Ratio : {
		name : ['180天回款率'],
		quotaType: 1, 
	},
	// overdueRatio : {
	// 	name : ['逾期率'],
	// 	quotaType: 2, 
	// }	
};

export default {
	dictDate,
	dictRouter,
	dictAll,
	dictLoans,
	dictGive,
	dictStorage,
	dictAfter,
}